package com.codeplay.domain.repository;

import com.codeplay.domain.entity.ParentUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface ParentUserRepository extends JpaRepository<ParentUser, Long> {
    Optional<ParentUser> findByUsername(String username);
    Optional<ParentUser> findByEmail(String email);
    Optional<ParentUser> findByPhone(String phone);
    boolean existsByUsername(String username);
    boolean existsByEmail(String email);
    boolean existsByPhone(String phone);
} 